package com.summer.mall.service;

import com.github.pagehelper.PageInfo;
import com.summer.mall.common.ResponseService;
import com.summer.mall.entity.Product;
import com.summer.mall.vo.ProductDetailVo;

public interface ProductService {
    ResponseService<String> saveOrUpadteProduct(Product product);

    ResponseService<String> setSaleStatus(Integer productId , Integer status);

    ResponseService<ProductDetailVo> manageProductDetail(Integer productId);

    ResponseService<PageInfo> getManageProductList(Integer pageNum, Integer pageSize);

    ResponseService<PageInfo> getProductList(Integer pageNum, Integer pageSize);

    ResponseService<PageInfo> searchProductByProductNameAndId(Integer pageNum, Integer pageSize, Integer productId, String productName);

    ResponseService<ProductDetailVo> productDetail(Integer productId);

    ResponseService<PageInfo> getProductByCategoryId(Integer categoryId,Integer pageNum,Integer pageSize,String orderBy);

    ResponseService<PageInfo> getProductByKeywordCategoryId(Integer categoryId, String keyword, Integer pageNum, Integer pageSize, String orderBy);

    ResponseService<Product> testFindProduct(Integer productId);

    ResponseService getByNameLike(String thename);
}
